package com.tequila.core.dao;

import com.tequila.domain.dto.ManagerDto;
import com.tequila.domain.entity.Manager;
import com.tequila.domain.query.ManagerQuery;

import java.util.List;

public interface ManagerDao {
    Manager queryById(Long id);

    List<ManagerDto> queryByIdList(List<Long> idList);

    List<ManagerDto> queryListByParam(ManagerQuery query);

    List<ManagerDto> queryPageListByParam(ManagerQuery query);

    int queryPageCountByParam(ManagerQuery query);

    int insert(Manager entity);

    int insertSelective(Manager entity);

    int updateById(Manager param);

    int updateSelectiveById(Manager param);

    int deleteById(Long id);

    int deleteByIdList(List<Long> idList);

    Manager queryByAccount(String account);

}